package main

import (
	"fmt"
	"net"
	"time"
)

func main() {

	listen, err := net.Listen("tcp", "127.0.0.1:9001")
	if err != nil {
		fmt.Println(err)
	}

	go func() {
		conn, err := listen.Accept()
		if err != nil {
			fmt.Println(err)
		}

		fmt.Println(conn)
	}()

	time.Sleep(time.Second * 1000)
}
